<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * 管理员登陆类
 */
class GetCode extends Admin_Controller{
	
	function __construct(){
		parent::__construct();
	}
	
	function index(){	
		$this->load->model('Captcha');
		$captcha = new Captcha();
		$captcha->wordsFile = 'words/en.php';
		$captcha->session_var = 'adminCode';
		$captcha->imageFormat = 'png';
		$captcha->scale = 4;
		$captcha->blur = true;
		$aa = realpath('./').DIRECTORY_SEPARATOR.'captcha'.DIRECTORY_SEPARATOR;
		$captcha->resourcesPath = $aa.'resources';
		$captcha->width = 150;
		$captcha->height = 35;
		$captcha->fonts = array(
	        'Antykwa'  => array('spacing' =>2, 'minSize' => 13, 'maxSize' => 22, 'font' => 'TimesNewRomanBold.ttf')
		);
		$captcha->CreateImage();
	}
}
/* End of file getCode.php */
/* Location: ./application/controllers/admin/getCode.php */